//
//  GameViewController.h
//  Palabris
//
//  Created by vedat on 23.12.12.
//  Copyright (c) 2012 vedat. All rights reserved.
//

#import <UIKit/UIKit.h>

#import <sqlite3.h>
@interface GameViewController : UIViewController <UITableViewDelegate,UITableViewDataSource>

@property (retain, nonatomic) IBOutlet UILabel *gameCharContainer;
@property (retain, nonatomic) IBOutlet UITextField *gameMovableCahr;
@property (retain, nonatomic) IBOutlet UILabel *gamePoint;
@property (retain, nonatomic) IBOutlet UIButton *gameOverButton;
@property (retain, nonatomic) IBOutlet UITableView *missedWordsTableView;
@property (retain, nonatomic) IBOutlet UIButton *showOrHidenMissedWords;
@property (retain, nonatomic) IBOutlet UIView *viewMissedWord;
@property (retain, nonatomic) IBOutlet UIButton *goGameOver;
@property (retain, nonatomic) IBOutlet UIButton *goMainMenu;
- (IBAction)gameOverButton:(id)sender;
- (IBAction)showOrHidenMissedWords:(id)sender;
- (IBAction)goGameOver:(id)sender;
- (IBAction)goMainMenu:(id)sender;


- (void) onGameTimer;
- (void) startGameTimer;
- (void) setGameCharToStartPosition;
- (NSString*) generateRandomCharacter;
- (void) applyVerticaleAnimation:(CGPoint) touchLocation;
- (void) applyHorizontaleAnimation:(CGPoint) touchLocation;
- (NSString*)generateRandomCharacterFromString:(NSString*)str key:(NSString*)key;
- (void) setGameDafault;
- (int) generateNumber:(int)val;
- (int) getFac:(int)value;
- (int) calcGamePoint:(NSString*) strForCalc;
- (void) updateGamePoint:(int) value;
- (NSString*) getGamePointStr;
- (int) getGamePointInt;
- (void) forthGame;
- (void) forthGameWithNewWord;
- (void)showGameButtons;
- (void)hiddenGameButtons;
- (BOOL) checkGameOver;
- (NSString*) generateRandomCharacter;
- (void) callGameOver;
- (void) showTableViewVerticaleAnimation;
- (void) hiddenTableViewVerticaleAnimation;

@end
